﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="menu.aspx.cs" Inherits="Com.Ompchina.Web.admin.main.menu" %>
<%@ Import Namespace="Util.Configuration" %>
<%@ Import Namespace="Model.AuthModel" %>
<%@ Import Namespace="System.Collections.Generic" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="../clients/js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="../clients/js/ompchina-common.js"></script>
<link type="text/css" rel="Stylesheet" href="../clients/css/reset.css" />
<link type="text/css" rel="stylesheet" href="../clients/css/common.css" />
<title>Admin Menu</title>
</head>
<body>
<div id="menu">
    <ul>
	<%
        IList<StaffRolesInfo> list = this._GetRolesRoleAuthByStaff();
        if (list != null && list.Count > 0)
        {
            StringBuilder repo = new StringBuilder("");
            foreach (StaffRolesInfo info in list)
            {
                repo.AppendFormat("<li><a href='{0}{1}?action={2}' target='content'>{3}</a></li>"
                    , WebConfiguration.WebRoot + WebConfiguration.AdminRoot
                    , info.Roles.RolesAuth.Auth.Module.ModuleLink, info.Roles.RolesAuth.Auth.Func.FuncName
                    , info.Roles.RolesAuth.Auth.Module.ModuleName);
            }
            Response.Write(repo.ToString());
        }
	%>
    </ul>
</div>
</body>
</html>